import request from '@/sheep/request';

export function pageList(data) {
	return request({
		url: '/erp/supplier/page',
		method: 'get',
		data: data
	})
}
// 获取客户信息
export function createSupplier(data) {
	return request({
		url: '/erp/supplier/create',
		method: 'post',
		data: data
	})
}
// 获取客户信息
export function updateSupplier(data) {
	return request({
		url: '/erp/supplier/update',
		method: 'PUT',
		data: data
	})
}
// 获取客户信息
export function getSupplier(id) {
	return request({
		url: '/erp/supplier/get?id=' + id,
		method: 'get'
	})
}
// 删除客户信息
export function deleteSupplier(id) {
	return request({
		url: '/erp/supplier/delete?id=' + id,
		method: 'delete'
	})
}
 export function supplierList() {
 	return request({
 		url: '/erp/supplier/simple-list',
 		method: 'get'
 	})
 } 